                <!-- Begin: widget - Banners Lateral -->
                <div class="widget banners-lateral">
<?
if (isset(LayoutPage::$banners['lateral3'])):
    $banners = LayoutPage::$banners['lateral3'];
    foreach ($banners as $banner):
        if ($banner == null):
?>
                    <a href="javascript:;">
                        <img src="<?= _BNN_IMG_ ?>lateral3.jpg" alt="Banner" />
                    </a>
<?
        else:
            if (strtolower(pathinfo($banner->filepicture, PATHINFO_EXTENSION)) == 'jpg'):
                if (!$banner->id_enterprise):
?>
                    <a href="<?= $banner->href ?>" target="<?= $banner->target ?>">
<? else: ?>
                    <a href="<?= __BASE_URI__.'revenda/'.urlencode(strtolower(str_replace(' ', '-', $banner->fancyname))).'/'.$banner->e_id ?>">
<? endif ?>
                        <img src="<?= _BNN_IMG_.$banner->filepicture ?>" alt="Banner" />
                    </a>
<? else: ?>
                    <object width="220" height="122">
                        <param name="src" value="<?= _BNN_IMG_.$banner->filepicture ?>">
                        <param name="wmode" value="opaque">
                        <embed src="<?= _BNN_IMG_.$banner->filepicture ?>" width="220" height="122"></embed>
                    </object>
<? if (!$banner->id_enterprise): ?>
                    <a class="flash" href="<?= $banner->href ?>" target="<?= $banner->target ?>"></a>
<? else: ?>
                    <a class="flash" href="<?= __BASE_URI__.'revenda/'.urlencode(strtolower(str_replace(' ', '-', $banner->fancyname))).'/'.$banner->e_id ?>"></a>
<?
                endif;
            endif;
        endif;
    endforeach;
endif
?>
                </div> <!-- End -->
